]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenShield: Forward key presses to tne entry when raising the shield
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 5 Mar 2013 05:55:54 +0000 (00:55 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 11 Mar 2013 19:08:21 +0000 (15:08 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=686740

js/gdm/loginDialog.js
js/ui/screenShield.js
js/ui/unlockDialog.js

index e9cb99fcfa143c16754214a774de61e084c23f41..373ddb5c67739161ab659f578589ad137e54e3ff 100644 (file)
@@ -1166,5 +1166,9 @@ const LoginDialog = new Lang.Class({
         this.parent();
 
         Main.ctrlAltTabManager.removeGroup(this.dialogLayout);
-    }
+    },
+
+    addCharacter: function(unichar) {
+        this._promptEntry.clutter_text.insert_unichar(unichar);
+    },
 });
index ada1024e69666c7497eecdd37d0f53981ca4a2b7..25fa4ccfb9fbbe688205c38506e435ac6c83b547 100644 (file)
@@ -601,6 +601,10 @@ const ScreenShield = new Lang.Class({
             return false;
 
         this._ensureUnlockDialog(true, true);
+
+        if (GLib.unichar_isgraph(unichar))
+            this._dialog.addCharacter(unichar);
+
         this._liftShield(true, 0);
         return true;
     },
index 07cbe4fbca64f572abcb7016e638ae1360735339..29825323eaca911acf62e57d140ef0414c65559b 100644 (file)
@@ -300,4 +300,8 @@ const UnlockDialog = new Lang.Class({
 
         this.destroy();
     },
+
+    addCharacter: function(unichar) {
+        this._promptEntry.clutter_text.insert_unichar(unichar);
+    },
 });